package com.chengqj.blogsso.constant;

/**
 * @program: blog-sso
 * @description: 常量定义
 * @author: chengqj
 * @create: 2018-07-24 10:18
 **/
public interface Consts {
    final class ReturnCode {
        /** 请求成功 */
        public static final int OK = 200;

        /** 参数非法 */
        public static final int PARAM_ERROR = 400;

        /** token错误*/
        public static final int TOKEN_ERROR = 401;
    }
    final class ReturnMsg {
        /** 请求成功 */
        public static final String USERNAME_EMPTY = "用户名不能为空";

        /** 参数非法 */
        public static final String PASSWORD_EMPTY = "密码不能为空";

        /** token不能为空 */
        public static final String TOKEN_EMPTY = "token不能为空";

        /** token错误 */
        public static final String TOKEN_ERROR = "token非法";
    }
}
